/*
 * Copyright 2007 Stefan Arentz <stefan@arentz.nl>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@interface WebServiceRequest : NSObject {
   NSURL* _url;
   NSString* _action;
   NSString* _version;
   NSDictionary* _parameters;
   NSString* _username;
   NSString* _password;
}

@property(readwrite,retain) NSURL* url;
@property(readwrite,copy) NSString* action;
@property(readwrite,copy) NSString* version;
@property(readwrite,retain) NSDictionary* parameters;
@property(readwrite,copy) NSString* username;
@property(readwrite,copy) NSString* password;

- (id) initWithUrl: (NSURL*) url action: (NSString*) action version: (NSString*) version parameters: (NSDictionary*) parameters;
- (id) initWithUrl: (NSURL*) url action: (NSString*) action version: (NSString*) version parameters: (NSDictionary*) parameters
   username: (NSString*) username password: (NSString*) password;

+ (id) webServiceRequestWithUrl: (NSURL*) url action: (NSString*) action version: (NSString*) version parameters: (NSDictionary*) parameters;
+ (id) webServiceRequestWithUrl: (NSURL*) url action: (NSString*) action version: (NSString*) version parameters: (NSDictionary*) parameters username: (NSString*) username password: (NSString*) password;

@end
